package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.LendRecord;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

@Mapper
public interface LendRecordMapper extends BaseMapper<LendRecord> {

    int countLendRecords();

    int deleteByMap(Map<String, Object> map);


    int insert(LendRecord lendRecord);


    List<LendRecord> findPage(Integer pageNum, Integer pageSize, String search1, String search2, String search3);


    long countTotal(String search1, String search2, String search3);


    void update(LendRecord lendRecord);
    void updateByIsbnAndReaderIdAndBorrownum(LendRecord lendRecord);

}



